from typing import TypedDict
from enum import Enum

class TaskItem(TypedDict):
    task_id: str
    cmd: str
    start_time: str
    duration: str
    end_time: str
    progress: str
    status: str


class TaskStatus(str, Enum):
    PENDING = "未运行"
    RUNNING = "正在运行"
    COMPLETED = "已完成"
    FAILED = "失败"
    CANCELLED = "已取消"
